s=eval(input("请输入本月总收入(元):"))
if s<=5000 :
    print("不需要收税")
elif s<=6500:
    ss=(s-5000)*0.03
    print("本月需缴税{}元".format(ss))
elif s<=9500:
    ss=(s-6500)*0.1
    print("本月需缴税{}元".format(ss +1500*0.03))
elif s<=14000:
    ss=(s-9500)*0.2
    print("本月需缴税{}元".format(ss+1500*0.03+3000*0.1))
elif s<=40000:
    ss=(s-14000)*0.25
    print("本月需缴税{}元".format(ss+1500*0.03+3000*0.1+4500*0.2))
elif s<=60000:
    ss=(s-40000)*0.3
    print("本月需缴税{}元".format(ss+1500*0.03+3000*0.1+4500*0.2+26000*0.25))
elif s<=850000:
    ss=(s-60000)*0.35
    print("本月需缴税{}元".format(ss+1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3))
elif s>850000:
    ss=(s-85000)*0.45
    print("本月需缴税{}元".format(ss+1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+25000*0.35))
